package com.joymart.common.system;

import org.springframework.stereotype.Component;

import java.math.BigDecimal;

@Component
public class BusinessConfig {

    // PV 现金转换比
    private final BigDecimal pvCashRate = BigDecimal.valueOf(1);
    // 经营店铺抽成比例
    private final BigDecimal firstSellerProfitRate = BigDecimal.valueOf(0.2);
    // 管理店铺抽成比例
    private final BigDecimal secondSellerProfitRate = BigDecimal.valueOf(0.2);
    // 开店点数需求
    private final BigDecimal shopQualificationPoints = BigDecimal.valueOf(1000.0);
    //收益比例
    private final BigDecimal agWhsGainRate = BigDecimal.valueOf(0.05);
    private final BigDecimal auWhsGainRate = BigDecimal.valueOf(0.05);
    private final BigDecimal agAgentGainRate = BigDecimal.valueOf(0.03);
    private final BigDecimal auAgentGainRate = BigDecimal.valueOf(0.03);
    private final BigDecimal managerGainRate = BigDecimal.valueOf(0.005);
    private final BigDecimal agDirectorGainRate = BigDecimal.valueOf(0.0025);
    private final BigDecimal auDirectorGainRate = BigDecimal.valueOf(0.0025);

    // 晋升/月度业绩需求
    private final BigDecimal whsPvSpec = BigDecimal.valueOf(30000.0);
    private final BigDecimal agentPvSpec = BigDecimal.valueOf(300000.0);


    public BigDecimal getWhsPvSpec() {
        return whsPvSpec;
    }

    public BigDecimal getAgentPvSpec() {
        return agentPvSpec;
    }

    public BigDecimal getFirstSellerProfitRate() {
        return firstSellerProfitRate;
    }

    public BigDecimal getSecondSellerProfitRate() {
        return secondSellerProfitRate;
    }

    public BigDecimal getPvCashRate() {
        return pvCashRate;
    }

    public BigDecimal getAgWhsGainRate() {
        return agWhsGainRate;
    }

    public BigDecimal getAuWhsGainRate() {
        return auWhsGainRate;
    }

    public BigDecimal getAgAgentGainRate() {
        return agAgentGainRate;
    }

    public BigDecimal getAuAgentGainRate() {
        return auAgentGainRate;
    }

    public BigDecimal getManagerGainRate() {
        return managerGainRate;
    }

    public BigDecimal getAgDirectorGainRate() {
        return agDirectorGainRate;
    }

    public BigDecimal getAuDirectorGainRate() {
        return auDirectorGainRate;
    }

    public BigDecimal getShopQualificationPoints() {
        return shopQualificationPoints;
    }
}
